home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_7 / issue_07 / drawfile / !RendDraw / h / DrawFile next >
Encoding:
Text File  |  1993-06-21  |  1.2 KB  |  57 lines

  1. /*
  2.  * Name  : DrawFile.c
  3.  * Desc  : Veneers for the draw file module
  4.  * Author: James Bye
  5.  * Date  : 21st June 1993
  6.  */
  7.  
  8. #ifndef __kernel_h
  9. #include "kernel.h"
  10. #endif
  11.  
  12. #ifndef __DrawFile_h
  13. #define __DrawFile_h
  14.  
  15.  
  16. /*-- structures etc... --*/
  17.  
  18. #define DrawFile_RenderBoundingBoxes (1 << 0)
  19. #define DrawFile_DoNotRenderObjects  (1 << 1)
  20.  
  21. #define DrawFile_Data char *
  22. #define DrawFile_Flags int
  23.  
  24. #define DrawFile_UseIdentityTransMat 0
  25. #define DrawFile_NoClippingRectangle 0
  26.  
  27. typedef struct 
  28.         {
  29.           int x0;
  30.           int y0;
  31.           int x1;
  32.           int y1;
  33.           int x2;
  34.           int y2;
  35.         } DrawFile_TransMatStr;
  36.  
  37. typedef struct
  38.         {
  39.           int x0;
  40.           int y0;
  41.           int x1;
  42.           int y1;
  43.         } DrawFile_ClipBBoxStr;
  44.  
  45. #define Render 0x45540
  46.  
  47. extern _kernel_oserror *DrawFile_Render ( DrawFile_Flags flags,
  48.                                           DrawFile_Data  data,
  49.                                           int size,
  50.                                           DrawFile_TransMatStr *tm,
  51.                                           DrawFile_ClipBBoxStr *clipbbox,
  52.                                           int x, int y );
  53.  
  54.  
  55. #endif
  56.  
  57.